import React, {useEffect} from 'react';
import {Button} from "antd";
import {useNavigate} from "react-router-dom";
import request from "@/service/request.tsx";

const User = () => {
    const navigate = useNavigate()
    const jump = () => {
        navigate({pathname: '/home'})
    }
    useEffect(() => {
        request.get('/getRoleInfo')
    }, []);
    return (
        <>
            <Button onClick={() => jump()}>User</Button>
        </>
    );
};

export default User;
